package com.silverbox.shopper.mapper;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.Qrcode;

public interface QrcodeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Qrcode record);

    int insertSelective(Qrcode record);

    Qrcode selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Qrcode record);

    int updateByPrimaryKey(Qrcode record);

    /**
     * 获取绑定的商品二维码信息
     */
	Qrcode getQrcodeGoodsInfo(@Param("storeId") Integer storeId, @Param("goodsId") Integer goodsId,
			@Param("sizeId") Long sizeId);

	/**
	 * 获取二维码绑定信息
	 * @param guid
	 * @return
	 */
	Qrcode getQrcodeInfoByGuid(@Param("guid") String guid);
}